class Women:
    def __init__(self, name):
        self.name = name
        self.__age = 18

    def __secret(self):
        print("%s 的年龄是 %d" % (self.name, self.__age))

    def boy_friend(self):
        self.__secret() # 私有方法只能在类内部调用

if __name__ == '__main__':
    w = Women("王大锤")
    # w.__secret()    #  错误，私有方法在类外不能访问
    # w.__Women__secret() #绕过机制，最好别用
